<?php
if(!$profile->permission('_user_can_view_menu_manager'))
	header("Location: index.php");

	$roledata = $data->getAllRoleClean();

$submenu .= el::elDiv('action-wrapper', 
	elJquery::elJqueryButton('Gestione Istanze','gest_istance', FALSE, 'index.php?do=istance')
	.elJquery::elJqueryButton('Gestione Boss','gest_boss', FALSE, 'index.php?do=boss')
	.elJquery::elJqueryButton('Gestione Loot','gest_loot', FALSE, 'index.php?do=loot')
	.elJquery::elJqueryButton('Setup Raid','gest_raid', TRUE, 'index.php?do=raid'),
	array('align'=>'left')
);

foreach ($roledata as $rowRole)
	$role .= el::elC().el::elText('Numero di ruoli '.$rowRole['rolename'].' massimo per questa Configurazione', 'raidmax-'.$rowRole['rolename'], '', array("size"=>'10'));

$elform .= el::elFieldset('Configurazione Raid', 
	el::elText('Nome della configurazione del Raid','raidname',null, array("size"=>'40'))
	.el::elC()
	.el::elText('Numero di giocatori totali massimo per questa Configurazione', 'raidmaxpg', '', array("size"=>'10')).$role
);

$elButton .= el::elButtonReset("clear_raid", "Pulisci Campi").el::elS().el::elButton("new_raid", "Nuovo Setup Raid").el::elS().el::elButton("save_raid", "Salva Modifiche");
$elform .= el::elHidden("raidid");

$form_new_raid = new elStyleForm('Crea una nuova Configurazione del Raid', 'censraid', $elform, $elButton);

$content .= $form_new_raid->elStyleForm;

$content .= el::elC(1).el::elDiv('div_tbl_raidlist','');

$jsmodule= "<script language=\"javascript\" type=\"text/javascript\" src=\"main/js/mod/jsRaid.js\" charset=\"iso-8859-1\"></script>\n";

include("theme/default/index.php");
?>